<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"> <style>
	.KEYW {color: #933;}
	.COMM {color: #bbb; font-style: italic;}
	.NUMB {color: #393;}
	.STRN {color: #393;}
	.REGX {color: #339;}
	.linenumber {border-right: 1px dotted #666; color: #666; font-style: normal;}
	</style></head><body><pre><span class='linenumber'>  1</span> <span class="COMM">/*snapIn2112
<span class='linenumber'>  2</span>  The 2112Portals replacement for YUI-Panel:
<span class='linenumber'>  3</span>  -More performance! (++)
<span class='linenumber'>  4</span>  -Maximum control
<span class='linenumber'>  5</span>  -Most flexible
<span class='linenumber'>  6</span>  A snapIn needs to have a function to be hooked up by the portal system.
<span class='linenumber'>  7</span> 
<span class='linenumber'>  8</span> */</span><span class="WHIT">
<span class='linenumber'>  9</span> 
<span class='linenumber'> 10</span> </span><span class="COMM">/*
<span class='linenumber'> 11</span>   Create your own !UNIQUE! Namespace by using the JAVA convention of
<span class='linenumber'> 12</span>   reversing your domain name or get a key from 2112Portals, or generate a GUID
<span class='linenumber'> 13</span>   The Problem with domains are:
<span class='linenumber'> 14</span>   1. You could not use domains starting with numbers (like ours 2112Portals.com)
<span class='linenumber'> 15</span>      Since JS does not eval variable starting with numbers.
<span class='linenumber'> 16</span>      So you could circumvent it by adding an underscore.
<span class='linenumber'> 17</span>   2. Well - for every dot-separated string an object would be created.
<span class='linenumber'> 18</span>      So on large Portals with many snapIns this may cause some performance
<span class='linenumber'> 19</span>      issues on the clients.
<span class='linenumber'> 20</span>   3. My recommendation: 
<span class='linenumber'> 21</span>      Use a single unique ID i.e. turn the dots in your Domain Name 
<span class='linenumber'> 22</span>      into myDomain_de/myDomain_net.
<span class='linenumber'> 23</span> */</span><span class="WHIT">
<span class='linenumber'> 24</span> 
<span class='linenumber'> 25</span> 
<span class='linenumber'> 26</span> </span><span class="COMM">//alert(runIsolated) ;</span><span class="WHIT">
<span class='linenumber'> 27</span> </span><span class="NAME">window.NS2112</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">window.NS2112</span><span class="WHIT"> </span><span class="PUNC">||</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 28</span> 
<span class='linenumber'> 29</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">runIsolated</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="KEYW">typeof</span><span class="WHIT"> </span><span class="NAME">NS2112.portalMan</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="STRN">'undefined'</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 30</span> 
<span class='linenumber'> 31</span> </span><span class="NAME">NS2112.namespace</span><span class="PUNC">(</span><span class="STRN">"INTRINSICS"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 32</span> 
<span class='linenumber'> 33</span> </span><span class="COMM">//This function would add a listener and keep the scope of the this </span><span class="WHIT">
<span class='linenumber'> 34</span> </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">snapIn2112_addListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 35</span> </span><span class="WHIT">    </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">window.addEventListener</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 36</span> </span><span class="WHIT">        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">el</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fn</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 37</span> </span><span class="WHIT">            </span><span class="NAME">el.addEventListener</span><span class="PUNC">(</span><span class="NAME">type</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fn</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 38</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 39</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">window.attachEvent</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 40</span> </span><span class="WHIT">        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">el</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fn</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 41</span> </span><span class="WHIT">            </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">f</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 42</span> </span><span class="WHIT">                </span><span class="NAME">fn.call</span><span class="PUNC">(</span><span class="NAME">el</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">window.event</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 43</span> </span><span class="WHIT">            </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 44</span> </span><span class="WHIT">            </span><span class="NAME">el.attachEvent</span><span class="PUNC">(</span><span class="STRN">'on'</span><span class="PUNC">+</span><span class="NAME">type</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">f</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 45</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 46</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 47</span> </span><span class="WHIT">        </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">el</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">type</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">fn</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 48</span> </span><span class="WHIT">            </span><span class="NAME">element</span><span class="PUNC">[</span><span class="STRN">'on'</span><span class="PUNC">+</span><span class="NAME">type</span><span class="PUNC">]</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">fn</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 49</span> </span><span class="WHIT">        </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 50</span> </span><span class="WHIT">    </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'> 51</span> </span><span class="PUNC">}</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 52</span> 
<span class='linenumber'> 53</span> 
<span class='linenumber'> 54</span> </span><span class="COMM">/*
<span class='linenumber'> 55</span> REMARKS:
<span class='linenumber'> 56</span> 
<span class='linenumber'> 57</span> Important to note that borders are treated differently on different browsers:
<span class='linenumber'> 58</span> FF: Borders are added outside so a panel height would be the height + 2 times the borderwidth.
<span class='linenumber'> 59</span> ID: Border grow to the inside.
<span class='linenumber'> 60</span> So to keep it simple we subtract the borders from the panels target size. This would result to smaller 
<span class='linenumber'> 61</span> panels on IE.
<span class='linenumber'> 62</span> But otherwise dealing with panels that are to large would disturb our reposition mechanism.
<span class='linenumber'> 63</span> 
<span class='linenumber'> 64</span> 
<span class='linenumber'> 65</span> */</span><span class="WHIT">
<span class='linenumber'> 66</span> 
<span class='linenumber'> 67</span> </span><span class="NAME">NS2112.INTRINSICS._2112SnapInPanel_</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">strName</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 68</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_WindowName</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">strName</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 69</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">windowClass</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'window12'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 70</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">panelClass</span><span class="WHIT">  </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'panel12'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'> 71</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">headerClass</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'hd12'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 72</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">bodyClass</span><span class="WHIT">   </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'bd12'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 73</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">bodyDropDownClass</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'bdDropDown12'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">  </span><span class="COMM">//for menu</span><span class="WHIT">
<span class='linenumber'> 74</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">footerClass</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'ft12'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'> 75</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_iHeaderHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">NS2112.portalMan.getHeaderHeight</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 76</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_iFooterHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">NS2112.portalMan.getFooterHeight</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 77</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_elWindow</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 78</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_elPanel</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 79</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_elBody</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 80</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_elHeader</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 81</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_elFooter</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 82</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_elTitle</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 83</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_DropListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="COMM">//there will be only ONE! We do not want to admin a bunch of listeners.</span><span class="WHIT">
<span class='linenumber'> 84</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_DragListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 85</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_UnloadListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 86</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_iWindowExtX</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'> 87</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_iWindowExtY</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'> 88</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_iBodyHeight</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 89</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_iHeaderHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">14</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 90</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_iFooterHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">5</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 91</span> </span><span class="WHIT">   </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">m_iBorderWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">1</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 92</span> 
<span class='linenumber'> 93</span> </span><span class="WHIT">   </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">m_iHeaderHeight</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">m_iHeaderHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">14</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 94</span> </span><span class="WHIT">   </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="PUNC">!</span><span class="NAME">m_iFooterHeight</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="NAME">m_iFooterHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="NUMB">5</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 95</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'> 96</span> </span><span class="WHIT">   </span><span class="NAME">elementFactory</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT">  </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">theParent</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">strUniqueName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">strClass</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">iWidth</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">iHeight</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'> 97</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'> 98</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'> 99</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">theElement</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.createElement</span><span class="PUNC">(</span><span class="STRN">"div"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>100</span> </span><span class="WHIT">         </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">strUniqueName</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>101</span> </span><span class="WHIT">         </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>102</span> </span><span class="WHIT">            </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.createAttribute</span><span class="PUNC">(</span><span class="STRN">"id"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>103</span> </span><span class="WHIT">            </span><span class="NAME">a.nodeValue</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">strUniqueName</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>104</span> </span><span class="WHIT">            </span><span class="NAME">theElement.setAttributeNode</span><span class="PUNC">(</span><span class="NAME">a</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>105</span> </span><span class="WHIT">         </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>106</span> </span><span class="WHIT">         </span><span class="NAME">a</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">document.createAttribute</span><span class="PUNC">(</span><span class="STRN">"class"</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>107</span> </span><span class="WHIT">         </span><span class="NAME">a.nodeValue</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">strClass</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>108</span> </span><span class="WHIT">         </span><span class="NAME">theElement.setAttributeNode</span><span class="PUNC">(</span><span class="NAME">a</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>109</span> 
<span class='linenumber'>110</span> </span><span class="WHIT">         </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">iWidth</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>111</span> </span><span class="WHIT">            </span><span class="NAME">theElement.style.width</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">iWidth</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'px'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>112</span> </span><span class="WHIT">         </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">iHeight</span><span class="WHIT"> </span><span class="PUNC">></span><span class="WHIT"> </span><span class="NUMB">0</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>113</span> </span><span class="WHIT">            </span><span class="NAME">theElement.style.height</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">iHeight</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="STRN">'px'</span><span class="PUNC">;</span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>114</span> </span><span class="WHIT">            </span><span class="WHIT">
<span class='linenumber'>115</span> </span><span class="WHIT">                  </span><span class="WHIT">
<span class='linenumber'>116</span> </span><span class="WHIT">         </span><span class="NAME">theParent.appendChild</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">theElement</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>117</span> </span><span class="WHIT">         </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">theElement</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>118</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>119</span> 
<span class='linenumber'>120</span> </span><span class="WHIT">   </span><span class="COMM">//the height of the main window</span><span class="WHIT">
<span class='linenumber'>121</span> 
<span class='linenumber'>122</span> </span><span class="WHIT">   </span><span class="NAME">this.setWindowExtY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">iHeight</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>123</span> </span><span class="WHIT">      </span><span class="NAME">m_iWindowExtY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">iHeight</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NUMB">4</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">m_iBorderWidth</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT">  </span><span class="NAME">m_iHeaderHeight</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">m_iFooterHeight</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>124</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>125</span> 
<span class='linenumber'>126</span> </span><span class="WHIT">   </span><span class="NAME">this.setWindowExtX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">iWidth</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>127</span> </span><span class="WHIT">      </span><span class="NAME">m_iWindowExtX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">iWidth</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="NUMB">2</span><span class="WHIT"> </span><span class="PUNC">*</span><span class="WHIT"> </span><span class="NAME">m_iBorderWidth</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>128</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>129</span> 
<span class='linenumber'>130</span> </span><span class="WHIT">   </span><span class="NAME">this.getWindowExtY</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">      </span><span class="WHIT">
<span class='linenumber'>131</span> </span><span class="WHIT">      </span><span class="KEYW">return</span><span class="WHIT">  </span><span class="NAME">m_iWindowExtY</span><span class="WHIT">  </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>132</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>133</span> 
<span class='linenumber'>134</span> </span><span class="WHIT">   </span><span class="NAME">this.getWindowExtX</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">      </span><span class="WHIT">
<span class='linenumber'>135</span> </span><span class="WHIT">      </span><span class="KEYW">return</span><span class="WHIT">  </span><span class="NAME">m_iWindowExtX</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>136</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>137</span> 
<span class='linenumber'>138</span> </span><span class="WHIT">   </span><span class="NAME">this.getBodyHeight</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>139</span> </span><span class="WHIT">       </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">this.getWindowExtY</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">-</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">m_iHeaderHeight</span><span class="WHIT"> </span><span class="PUNC">+</span><span class="WHIT"> </span><span class="NAME">m_iFooterHeight</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">  </span><span class="COMM">//to change ; ;     </span><span class="WHIT">
<span class='linenumber'>140</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>141</span> 
<span class='linenumber'>142</span> </span><span class="WHIT">   </span><span class="NAME">this.getBodyWidth</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>143</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">iMozAdjust</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">m_elWindow.clientWidth</span><span class="WHIT"> </span><span class="REGX">/ m_elWindow.clientWidth ;
<span class='linenumber'>144</span> 
<span class='linenumber'>145</span>       /</span><span class="REGX">/alert(iMozAdjust + '/</span><span class="STRN">' +  document.clientWidth + '</span><span class="REGX">/' +  NaN + '/</span><span class="STRN">' +  isNaN(iMozAdjust) ) ;
<span class='linenumber'>146</span> 
<span class='linenumber'>147</span>       if( document.all )
<span class='linenumber'>148</span>       {
<span class='linenumber'>149</span>        //
<span class='linenumber'>150</span>          return this.getWindowExtX()  ;
<span class='linenumber'>151</span>       }      
<span class='linenumber'>152</span>       else
<span class='linenumber'>153</span>          return this.getWindowExtX() - 2 ;
<span class='linenumber'>154</span> ;  //to change ; ;     
<span class='linenumber'>155</span>    }  
<span class='linenumber'>156</span> 
<span class='linenumber'>157</span>    this.getWindowName = function(){
<span class='linenumber'>158</span>       return m_WindowName;
<span class='linenumber'>159</span>    }
<span class='linenumber'>160</span>    
<span class='linenumber'>161</span>    this.getWindow = function(){
<span class='linenumber'>162</span>       return m_elWindow ;
<span class='linenumber'>163</span>    }
<span class='linenumber'>164</span>    
<span class='linenumber'>165</span>    this.getPanel = function(){
<span class='linenumber'>166</span>       return m_elPanel ;
<span class='linenumber'>167</span>    }
<span class='linenumber'>168</span>    
<span class='linenumber'>169</span>    this.getHeader = function(){
<span class='linenumber'>170</span>       return m_elHeader ;
<span class='linenumber'>171</span>    }
<span class='linenumber'>172</span>    
<span class='linenumber'>173</span>    this.getBody = function(){
<span class='linenumber'>174</span>       return m_elBody ;
<span class='linenumber'>175</span>    }
<span class='linenumber'>176</span>    
<span class='linenumber'>177</span>    this.create = function (strTitle, iWidth, iHeight, bNoBorders, bCanClose) 
<span class='linenumber'>178</span>    {     
<span class='linenumber'>179</span>       var el ;
<span class='linenumber'>180</span>       var strClass ;
<span class='linenumber'>181</span>       this.setWindowExtX(iWidth);
<span class='linenumber'>182</span>       this.setWindowExtY(iHeight) ;   
<span class='linenumber'>183</span>       
<span class='linenumber'>184</span> 
<span class='linenumber'>185</span>       m_elWindow = elementFactory(document.body, m_WindowName + '</span><span class="NAME">_</span><span class="STRN">' + windowClass, windowClass, 
<span class='linenumber'>186</span>                      this.getWindowExtX(), this.getWindowExtY()); 
<span class='linenumber'>187</span>       if( true == bNoBorders )
<span class='linenumber'>188</span>            m_elWindow.style.overflow = '</span><span class="NAME">visible</span><span class="STRN">'  ; 
<span class='linenumber'>189</span>       
<span class='linenumber'>190</span>       a = document.createAttribute("align");
<span class='linenumber'>191</span>       a.nodeValue = "left" ;      
<span class='linenumber'>192</span>       m_elWindow.setAttributeNode(a);
<span class='linenumber'>193</span>       
<span class='linenumber'>194</span> 
<span class='linenumber'>195</span> 
<span class='linenumber'>196</span> 
<span class='linenumber'>197</span>       m_elPanel  = elementFactory(m_elWindow, m_WindowName + '</span><span class="NAME">_</span><span class="STRN">' + panelClass, panelClass,
<span class='linenumber'>198</span>                -1, -1); //this.getWindowExtX()  this.getWindowExtY()
<span class='linenumber'>199</span> 
<span class='linenumber'>200</span>     
<span class='linenumber'>201</span>       if( true == bNoBorders )
<span class='linenumber'>202</span>            m_elPanel.style.overflow = '</span><span class="NAME">visible</span><span class="STRN">'  ;
<span class='linenumber'>203</span>      
<span class='linenumber'>204</span>       //m_elPanel.position = '</span><span class="NAME">static</span><span class="STRN">';
<span class='linenumber'>205</span>       
<span class='linenumber'>206</span>       
<span class='linenumber'>207</span>       m_elHeader = elementFactory(m_elPanel, m_WindowName  + '</span><span class="NAME">_</span><span class="STRN">' + headerClass, headerClass , 
<span class='linenumber'>208</span>                            -1, m_iHeaderHeight);
<span class='linenumber'>209</span>       //m_elHeader.position = '</span><span class="NAME">static</span><span class="STRN">';     
<span class='linenumber'>210</span>       
<span class='linenumber'>211</span>       
<span class='linenumber'>212</span>       
<span class='linenumber'>213</span>       m_iBodyHeight = this.getBodyHeight() ;
<span class='linenumber'>214</span>       m_iBodyWidth = this.getBodyWidth() ;                
<span class='linenumber'>215</span>       bNoBorders == true?strClass = bodyDropDownClass:strClass=bodyClass ;    
<span class='linenumber'>216</span>       m_elBody   = elementFactory(m_elPanel, m_WindowName + '</span><span class="NAME">_</span><span class="STRN">' + strClass, strClass, m_iBodyWidth, m_iBodyHeight);      
<span class='linenumber'>217</span>       if(bNoBorders == false ) //do show footer then.
<span class='linenumber'>218</span>          m_elFooter = elementFactory(m_elPanel, m_WindowName + '</span><span class="NAME">_</span><span class="STRN">' + footerClass, footerClass, 
<span class='linenumber'>219</span>                            -1, m_iFooterHeight);         
<span class='linenumber'>220</span> 
<span class='linenumber'>221</span> 
<span class='linenumber'>222</span> 
<span class='linenumber'>223</span> 
<span class='linenumber'>224</span>       elementFactory(m_elHeader, null, '</span><span class="NAME">tl</span><span class="STRN">' , -1, -1);
<span class='linenumber'>225</span>       elementFactory(m_elHeader, null, '</span><span class="NAME">tr</span><span class="STRN">' , -1, -1);      
<span class='linenumber'>226</span>       
<span class='linenumber'>227</span>       m_elTitle = document.createElement("span");
<span class='linenumber'>228</span>       m_elTitle.innerHTML = strTitle ;      
<span class='linenumber'>229</span>       m_elHeader.appendChild ( m_elTitle );
<span class='linenumber'>230</span>       if(true == bCanClose)
<span class='linenumber'>231</span>       {    
<span class='linenumber'>232</span>          el = document.createElement("a");
<span class='linenumber'>233</span>          a = document.createAttribute("href");
<span class='linenumber'>234</span>          a.nodeValue = "#" ;      
<span class='linenumber'>235</span>          el.setAttributeNode(a);
<span class='linenumber'>236</span> 
<span class='linenumber'>237</span>          snapIn2112_addListener(el, "click", this.hide);
<span class='linenumber'>238</span> 
<span class='linenumber'>239</span>          a = document.createAttribute("class");
<span class='linenumber'>240</span>          a.nodeValue = "container-close" ;    //style=\"display:block;\"" ;
<span class='linenumber'>241</span>          el.setAttributeNode(a);
<span class='linenumber'>242</span>          m_elHeader.appendChild ( el );   
<span class='linenumber'>243</span>       }
<span class='linenumber'>244</span> /*  //5/2008 to be implemented soon...
<span class='linenumber'>245</span>       if(true == bCanGrow )
<span class='linenumber'>246</span>       {         
<span class='linenumber'>247</span>          el = document.createElement("a");
<span class='linenumber'>248</span>          a = document.createAttribute("href");
<span class='linenumber'>249</span>          a.nodeValue = "#" ;      
<span class='linenumber'>250</span>          el.setAttributeNode(a);
<span class='linenumber'>251</span> 
<span class='linenumber'>252</span>          snapIn2112_addListener(el, "click", this.hide);
<span class='linenumber'>253</span> 
<span class='linenumber'>254</span>          a = document.createAttribute("class");
<span class='linenumber'>255</span>          a.nodeValue = "container-max" ;    //style=\"display:block;\"" ;
<span class='linenumber'>256</span>          el.setAttributeNode(a);
<span class='linenumber'>257</span>          m_elHeader.appendChild ( el );      
<span class='linenumber'>258</span>    
<span class='linenumber'>259</span>       }
<span class='linenumber'>260</span> */
<span class='linenumber'>261</span>          return m_elBody ;  
<span class='linenumber'>262</span>    }
<span class='linenumber'>263</span> 
<span class='linenumber'>264</span>    this.show = function()
<span class='linenumber'>265</span>    {
<span class='linenumber'>266</span>       m_elWindow.style.display ='</span><span class="NAME">block</span><span class="STRN">' ;
<span class='linenumber'>267</span>    }
<span class='linenumber'>268</span>    
<span class='linenumber'>269</span>    this.destroy = function(){
<span class='linenumber'>270</span>       document.body.removeChild(m_elWindow) ;
<span class='linenumber'>271</span>       m_UnloadListener(m_WindowName) ;
<span class='linenumber'>272</span>    }
<span class='linenumber'>273</span> 
<span class='linenumber'>274</span>    this.hide = function(){
<span class='linenumber'>275</span>       m_elWindow.style.display ='</span><span class="NAME">none</span><span class="STRN">' ;
<span class='linenumber'>276</span>       m_UnloadListener(m_WindowName) ;
<span class='linenumber'>277</span>    }
<span class='linenumber'>278</span>    
<span class='linenumber'>279</span>    this.unlink = function(){
<span class='linenumber'>280</span>    
<span class='linenumber'>281</span>    }
<span class='linenumber'>282</span> 
<span class='linenumber'>283</span>    this.moveTo = function(x, y) 
<span class='linenumber'>284</span>    {     
<span class='linenumber'>285</span>       var tmp = m_elWindow.style.position ;
<span class='linenumber'>286</span>       m_elWindow.style.position = '</span><span class="NAME">fixed</span><span class="STRN">' ;
<span class='linenumber'>287</span>       m_elWindow.style["top"] =  y + "px";
<span class='linenumber'>288</span> 		m_elWindow.style["left"] = x + "px";
<span class='linenumber'>289</span>       m_elWindow.style.position = tmp ;
<span class='linenumber'>290</span>       tmp = m_elPanel.style.position ;
<span class='linenumber'>291</span>       m_elPanel.style.position = '</span><span class="NAME">fixed</span><span class="STRN">' ;
<span class='linenumber'>292</span>       //m_elPanel.style["top"] =  y + "px";
<span class='linenumber'>293</span> 		//m_elPanel.style["left"] = x + "px";
<span class='linenumber'>294</span>       m_elPanel.style.position = tmp;
<span class='linenumber'>295</span>   }
<span class='linenumber'>296</span>    
<span class='linenumber'>297</span>    this.resize = function(iWidth, iHeight)
<span class='linenumber'>298</span>    {
<span class='linenumber'>299</span>       this.setWindowExtX(iWidth);           //Width and Height get calculated
<span class='linenumber'>300</span>       this.setWindowExtY(iHeight) ;   
<span class='linenumber'>301</span>       m_iBodyHeight = this.getBodyHeight() ;
<span class='linenumber'>302</span> 		m_iBodyWidth  = this.getBodyWidth() ;
<span class='linenumber'>303</span>       m_elWindow.style["width"] =  this.getWindowExtX() + "px";
<span class='linenumber'>304</span> 		m_elWindow.style["height"] = this.getWindowExtY() + "px";
<span class='linenumber'>305</span>       m_elPanel.style["width"] =  this.getWindowExtX() + "px";
<span class='linenumber'>306</span> 		m_elPanel.style["height"] = this.getWindowExtY() + "px";
<span class='linenumber'>307</span> 		m_elBody.style["height"] = m_iBodyHeight + "px";
<span class='linenumber'>308</span>       m_elBody.style["width"] =  m_iBodyWidth + "px";   // DO NOT ADJUST WIDTH HERE! - it'</span><span class="NAME">s</span><span class="WHIT"> </span><span class="NAME">AUTO.</span><span class="WHIT">  </span><span class="PUNC">?</span><span class="WHIT"> </span><span class="COMM">//but IE7 would not work...</span><span class="WHIT">
<span class='linenumber'>309</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>310</span> 
<span class='linenumber'>311</span> </span><span class="WHIT">   </span><span class="NAME">this.setTitle</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">strTitle</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>312</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>313</span> </span><span class="WHIT">      </span><span class="NAME">m_elTitle.innerHTML</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">strTitle</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>314</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>315</span> 
<span class='linenumber'>316</span> </span><span class="WHIT">   </span><span class="NAME">this.getContentNode</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>317</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>318</span> </span><span class="WHIT">      </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">m_elBody.firstChild</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>319</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>320</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>321</span> </span><span class="WHIT">   </span><span class="NAME">this.setContent</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">theContent</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>322</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>323</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">theContent.tagName</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="COMM">//it's a div</span><span class="WHIT">
<span class='linenumber'>324</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>325</span> </span><span class="WHIT">         </span><span class="NAME">m_elBody.innerHTML</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">""</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>326</span> </span><span class="WHIT">         </span><span class="NAME">m_elBody.appendChild</span><span class="PUNC">(</span><span class="NAME">theContent</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>327</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>328</span> </span><span class="WHIT">      </span><span class="KEYW">else</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>329</span> </span><span class="WHIT">      </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>330</span> </span><span class="WHIT">         </span><span class="NAME">m_elBody.innerHTML</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">theContent</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>331</span> </span><span class="WHIT">      </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>332</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>333</span> 
<span class='linenumber'>334</span> </span><span class="WHIT">   </span><span class="COMM">//just to satisfy the contract for snapIns</span><span class="WHIT">
<span class='linenumber'>335</span> </span><span class="WHIT">   </span><span class="NAME">this.setBody</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">theContent</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>336</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>337</span> </span><span class="WHIT">       </span><span class="NAME">this.setContent</span><span class="PUNC">(</span><span class="NAME">theContent</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>338</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>339</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>340</span> </span><span class="WHIT">   </span><span class="NAME">this.setDropListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">dropHandler</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>341</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>342</span> </span><span class="WHIT">      </span><span class="NAME">m_DropListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dropHandler</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>343</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>344</span> 
<span class='linenumber'>345</span> </span><span class="WHIT">   </span><span class="NAME">this.setDragListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">dragHandler</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>346</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>347</span> </span><span class="WHIT">      </span><span class="NAME">m_DragListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">dragHandler</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>348</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>349</span> 
<span class='linenumber'>350</span> </span><span class="WHIT">   </span><span class="NAME">this.setUnloadListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">unloadHandler</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>351</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>352</span> </span><span class="WHIT">      </span><span class="NAME">m_UnloadListener</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">unloadHandler</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>353</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>354</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>355</span> </span><span class="WHIT">   </span><span class="NAME">this.onDrop</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">arg</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>356</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>357</span> </span><span class="WHIT">      </span><span class="COMM">//the arg object gets translated into some atoms and the Listener is called.</span><span class="WHIT">
<span class='linenumber'>358</span> </span><span class="WHIT">     </span><span class="WHIT">
<span class='linenumber'>359</span> </span><span class="WHIT">     </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">m_DropListener</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>360</span> </span><span class="WHIT">     </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>361</span> </span><span class="WHIT">       </span><span class="NAME">m_DropListener</span><span class="PUNC">(</span><span class="NAME">m_WindowName</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">arg.mousePosition.x</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">arg.mousePosition.y</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>362</span> </span><span class="WHIT">     </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>363</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>364</span> 
<span class='linenumber'>365</span> </span><span class="WHIT">   </span><span class="NAME">this.onStartDrag</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">arg</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>366</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>367</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">m_DragListener</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>368</span> </span><span class="WHIT">     </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>369</span> </span><span class="WHIT">       </span><span class="NAME">m_DragListener</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>370</span> </span><span class="WHIT">     </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>371</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>372</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>373</span> 
<span class='linenumber'>374</span> 
<span class='linenumber'>375</span> 
<span class='linenumber'>376</span> </span><span class="NAME">NS2112.INTRINSICS.PanelFactory2112</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>377</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>378</span> </span><span class="WHIT">   </span><span class="NAME">this.create</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="WHIT"> </span><span class="PUNC">(</span><span class="NAME">cbDrag</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cbDrop</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">cbUnload</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">theContent</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">snapInID</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">strTitle</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>379</span> </span><span class="WHIT">                        </span><span class="NAME">iPreferredWidth</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">iPreferredHeight</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">bNoBounds</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">bCanClose</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>380</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>381</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">NS2112.INTRINSICS._2112SnapInPanel_</span><span class="PUNC">(</span><span class="NAME">snapInID</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>382</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">drag</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ToolMan.drag</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>383</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">coordinates</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">ToolMan.coordinates</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>384</span> 
<span class='linenumber'>385</span> </span><span class="COMM">//debugger;</span><span class="WHIT">
<span class='linenumber'>386</span> </span><span class="WHIT">      </span><span class="KEYW">var</span><span class="WHIT"> </span><span class="NAME">myBody</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NAME">x.create</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">strTitle</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">iPreferredWidth</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">iPreferredHeight</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">bNoBounds</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">bCanClose</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>387</span> 
<span class='linenumber'>388</span> 
<span class='linenumber'>389</span> 
<span class='linenumber'>390</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">cbDrop</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>391</span> </span><span class="WHIT">         </span><span class="NAME">x.setDropListener</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">cbDrop</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>392</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">cbDrag</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>393</span> </span><span class="WHIT">         </span><span class="NAME">x.setDragListener</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">cbDrag</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>394</span> </span><span class="WHIT">      </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">!=</span><span class="WHIT"> </span><span class="NAME">cbUnload</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>395</span> </span><span class="WHIT">         </span><span class="NAME">x.setUnloadListener</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="NAME">cbUnload</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>396</span> </span><span class="WHIT">      </span><span class="NAME">x.setContent</span><span class="PUNC">(</span><span class="NAME">theContent</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>397</span> 
<span class='linenumber'>398</span> </span><span class="WHIT">      </span><span class="COMM">//x.setContent('&lt;div align=center>&lt;embed src=\"http://www.worldtimeserver.com/clocks/wtsclock001.swf?color=6495ED&wtsid=DE\" width=\"100\" height=\"100\" wmode=\"transparent\" type=\"application/x-shockwave-flash\" />&lt;/div>');</span><span class="WHIT">
<span class='linenumber'>399</span> </span><span class="WHIT">      </span><span class="NAME">drag.createProxy</span><span class="PUNC">(</span><span class="NAME">x.getWindow</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x.getHeader</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x.onStartDrag</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">x.onDrop</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>400</span> </span><span class="WHIT">      </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">x</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>401</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>402</span> </span><span class="WHIT">      </span><span class="WHIT">
<span class='linenumber'>403</span> </span><span class="COMM">//currently just a shell</span><span class="WHIT">
<span class='linenumber'>404</span> </span><span class="WHIT">  </span><span class="NAME">this.show</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">thePanel</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="WHIT">
<span class='linenumber'>405</span> </span><span class="WHIT">  </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>406</span> </span><span class="WHIT">      </span><span class="NAME">thePanel.show</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>407</span> </span><span class="WHIT">  </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>408</span> 
<span class='linenumber'>409</span> 
<span class='linenumber'>410</span> </span><span class="WHIT">  </span><span class="WHIT">
<span class='linenumber'>411</span> 
<span class='linenumber'>412</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>413</span> 
<span class='linenumber'>414</span> </span><span class="NAME">NS2112.INTRINSICS.snapIn2112</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">el</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">userConfig</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>415</span> </span><span class="PUNC">{</span><span class="WHIT">  </span><span class="WHIT">
<span class='linenumber'>416</span> 
<span class='linenumber'>417</span> </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">runIsolated</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>418</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>419</span> </span><span class="WHIT">   </span><span class="NAME">this.constructor.superclass.constructor.call</span><span class="PUNC">(</span><span class="KEYW">this</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">el</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">userConfig</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>420</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>421</span> </span><span class="WHIT">   </span><span class="NAME">this.Title</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">"2112SnapInMod"</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>422</span> </span><span class="WHIT">   </span><span class="NAME">this.Name</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'2112SnapInMod'</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>423</span> </span><span class="WHIT">   </span><span class="NAME">this.Width</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">200</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>424</span> </span><span class="WHIT">   </span><span class="NAME">this.Height</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="NUMB">100</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>425</span> </span><span class="WHIT">   </span><span class="NAME">this.Intrinsic</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">true</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>426</span> </span><span class="WHIT">   </span><span class="NAME">this.IntrinsicType</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="STRN">'snapin'</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>427</span> </span><span class="WHIT">   </span><span class="NAME">this.IntrinsicObject</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">null</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>428</span> </span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>429</span> </span><span class="WHIT">   </span><span class="COMM">//The load callback - load your stuff here</span><span class="WHIT">
<span class='linenumber'>430</span> </span><span class="WHIT">   </span><span class="NAME">this.load</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="NAME">myDiv</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>431</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">  </span><span class="WHIT">
<span class='linenumber'>432</span> </span><span class="WHIT">     </span><span class="NAME">this.IntrinsicObject</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">NS2112.INTRINSICS.PanelFactory2112</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>433</span> </span><span class="WHIT">     </span><span class="KEYW">return</span><span class="WHIT"> </span><span class="NAME">myDiv</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>434</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>435</span> 
<span class='linenumber'>436</span> </span><span class="WHIT">    </span><span class="WHIT">
<span class='linenumber'>437</span> </span><span class="WHIT">   </span><span class="NAME">this.unload</span><span class="WHIT"> </span><span class="PUNC">=</span><span class="WHIT"> </span><span class="KEYW">function</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>438</span> </span><span class="WHIT">   </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>439</span> </span><span class="WHIT">      </span><span class="NAME">this.IntrinsicObject.destroy</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>440</span> </span><span class="WHIT">   </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>441</span> </span><span class="WHIT">   </span><span class="COMM">//remember? - u need a unique name. </span><span class="WHIT">
<span class='linenumber'>442</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>443</span> 
<span class='linenumber'>444</span> 
<span class='linenumber'>445</span> 
<span class='linenumber'>446</span> </span><span class="KEYW">if</span><span class="PUNC">(</span><span class="WHIT"> </span><span class="KEYW">false</span><span class="WHIT"> </span><span class="PUNC">==</span><span class="WHIT"> </span><span class="NAME">runIsolated</span><span class="WHIT"> </span><span class="PUNC">)</span><span class="WHIT">
<span class='linenumber'>447</span> </span><span class="PUNC">{</span><span class="WHIT">
<span class='linenumber'>448</span> </span><span class="WHIT">   </span><span class="NAME">NS2112.extend</span><span class="PUNC">(</span><span class="NAME">NS2112.INTRINSICS.snapIn2112</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="NAME">NS2112.snapIn12</span><span class="PUNC">)</span><span class="PUNC">;</span><span class="WHIT">
<span class='linenumber'>449</span> </span><span class="WHIT">   </span><span class="COMM">//NS2112.loadCSS('/2112PowerWindows/assets/window12.css') ;</span><span class="WHIT">
<span class='linenumber'>450</span> </span><span class="WHIT">   </span><span class="NAME">NS2112.registerSnapIn</span><span class="PUNC">(</span><span class="KEYW">new</span><span class="WHIT"> </span><span class="NAME">NS2112.INTRINSICS.snapIn2112</span><span class="PUNC">(</span><span class="PUNC">)</span><span class="PUNC">,</span><span class="WHIT"> </span><span class="STRN">"com._2112_.intrinsics"</span><span class="PUNC">)</span><span class="WHIT"> </span><span class="PUNC">;</span><span class="WHIT">   </span><span class="WHIT">
<span class='linenumber'>451</span> </span><span class="PUNC">}</span><span class="WHIT">
<span class='linenumber'>452</span> 
<span class='linenumber'>453</span> 
<span class='linenumber'>454</span> 
<span class='linenumber'>455</span> 
<span class='linenumber'>456</span> 
<span class='linenumber'>457</span> 
<span class='linenumber'>458</span> 
<span class='linenumber'>459</span> 
<span class='linenumber'>460</span> 
<span class='linenumber'>461</span> 
<span class='linenumber'>462</span> </span></pre></body></html>